﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CqusInfo.RAL.Barter
{
    /// <summary>
    /// tb_Shops_TransactionRecord 交易记录表
    /// </summary>
    public class Shops_TransactionRecordModel
    {
        public string c_vc_strId { get; set; }
        public string c_vc_buyId { get; set; }
        public string c_vc_sellId { get; set; }
        public string c_vc_spId { get; set; }
        public bool c_b_isAgree { get; set; }
        public Int32 c_i_transactionStatu { get; set; }
        public DateTime c_dt_dateTime{ get; set; }
        public bool c_b_isDel { get; set; }

        /// <summary>
        /// 无参构造函数
        /// </summary>
        public Shops_TransactionRecordModel()
        {

        }

        /// <summary>
        /// 有参构造函数
        /// </summary>
        /// <param name="sptId">Id</param>
        /// <param name="buyId">买方ID</param>
        /// <param name="sellId">卖方Id</param>
        /// <param name="spId">商品ID</param>
        /// <param name="dateTime">创建时间</param>
        /// <param name="isAgree">true:同意 false：不同意</param>
        /// <param name="transactionStuta">交易状态（0：成功 1：卖方取消交易 2：买方取消交易 3：物品下架 4:正在交易）</param>
        /// <param name="isDel">是否删除</param>
        public Shops_TransactionRecordModel(string sptId,string buyId,string sellId, string spId, DateTime dateTime,bool isAgree,Int32 transactionStuta, bool isDel)
        {
            this.c_vc_strId = sptId;
            this.c_vc_spId = spId;
            this.c_vc_buyId = buyId;
            this.c_vc_sellId = sellId;
            this.c_i_transactionStatu = transactionStuta;
            this.c_b_isAgree = isAgree;
            this.c_dt_dateTime = dateTime;
            this.c_b_isDel = isDel;
        }
    }
}
